package com.pet.cloud.merchant.infrastructure.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("petc_user")
public class User {

    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Integer id;

    @TableField("openId")
    private String openId;

    @TableField("unionId")
    private String unionId;

    @TableField("phone")
    private String phone;

    @TableField("user_account")
    private String userAccount;

    @TableField("password")
    private String password;

    @TableField("user_name")
    private String userName;

    @TableField("nickname")
    private String nickname;

    @TableField("sex")
    private Integer sex;

    @TableField("avatar")
    private String avatar;

    @TableField("birthday")
    private LocalDateTime birthday;

    @TableField("status")
    private Integer status;

    @TableField("login_date")
    private LocalDateTime loginDate;
}
